/* SmartInput Chrome扩展内容脚本样式 */
.smartinput-panel {
  position: fixed;
  top: 20px;
  right: 20px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 10000;
  display: none;
  min-width: 200px;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.smartinput-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  background: #f8f9fa;
  border-radius: 8px 8px 0 0;
}

.smartinput-title {
  font-weight: bold;
  color: #333;
  font-size: 14px;
}

.smartinput-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.smartinput-close:hover {
  color: #333;
}

.smartinput-content {
  padding: 15px;
}

.smartinput-btn {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 12px;
  margin-bottom: 8px;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s;
  font-size: 14px;
  color: #333;
}

.smartinput-btn:hover {
  background: #e9ecef;
  border-color: #007bff;
}

.smartinput-btn:last-child {
  margin-bottom: 0;
}

.smartinput-btn .icon {
  margin-right: 8px;
  font-size: 16px;
}

.smartinput-btn .label {
  font-size: 14px;
  color: #333;
}

/* 对话框 */
.smartinput-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.smartinput-dialog-content {
  background: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  animation: scaleIn 0.3s ease-out;
}

@keyframes scaleIn {
  from {
    transform: scale(0.9);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}

.smartinput-dialog-content h3 {
  margin: 0 0 15px 0;
  color: #333;
  font-size: 16px;
  font-weight: 600;
}

.smartinput-dialog-text {
  background: #f8f9fa;
  padding: 10px;
  border-radius: 4px;
  margin: 0 0 15px 0;
  word-break: break-all;
  font-size: 14px;
  line-height: 1.4;
  color: #333;
}

.smartinput-dialog-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.smartinput-dialog-btn {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.confirm-btn {
  background: #007bff;
  color: white;
}

.confirm-btn:hover {
  background: #0056b3;
}

.cancel-btn {
  background: #6c757d;
  color: white;
}

.cancel-btn:hover {
  background: #545b62;
}

/* 通知 */
.smartinput-notification {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #333;
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  font-size: 14px;
  z-index: 10000;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
  from {
    transform: translateX(-50%) translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}

/* 状态样式 */
.smartinput-success {
  background: #4CAF50;
}

.smartinput-error {
  background: #f44336;
}

.smartinput-warning {
  background: #ff9800;
}

.smartinput-info {
  background: #2196F3;
}

/* 响应式设计 */
@media (max-width: 480px) {
  .smartinput-panel {
    top: 10px;
    right: 10px;
    left: 10px;
    min-width: auto;
  }
  
  .smartinput-dialog-content {
    margin: 20px;
    width: calc(100% - 40px);
  }
  
  .smartinput-dialog-buttons {
    flex-direction: column;
  }
  
  .smartinput-dialog-btn {
    width: 100%;
  }
}

/* 深色主题支持 */
@media (prefers-color-scheme: dark) {
  .smartinput-panel {
    background: #2d3748;
    border-color: #4a5568;
    color: #e2e8f0;
  }
  
  .smartinput-header {
    background: #1a202c;
    border-bottom-color: #4a5568;
  }
  
  .smartinput-title {
    color: #e2e8f0;
  }
  
  .smartinput-close {
    color: #a0aec0;
  }
  
  .smartinput-close:hover {
    color: #e2e8f0;
  }
  
  .smartinput-btn {
    background: #4a5568;
    border-color: #718096;
    color: #e2e8f0;
  }
  
  .smartinput-btn:hover {
    background: #718096;
    border-color: #90cdf4;
  }
  
  .smartinput-dialog-content {
    background: #2d3748;
    color: #e2e8f0;
  }
  
  .smartinput-dialog-content h3 {
    color: #e2e8f0;
  }
  
  .smartinput-dialog-text {
    background: #4a5568;
    color: #e2e8f0;
  }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
  .smartinput-panel {
    border-width: 2px;
  }
  
  .smartinput-btn {
    border-width: 2px;
  }
  
  .smartinput-dialog-content {
    border: 2px solid #000;
  }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
  .smartinput-panel,
  .smartinput-dialog,
  .smartinput-dialog-content,
  .smartinput-notification {
    animation: none;
  }
}

/* 打印样式 */
@media print {
  .smartinput-panel,
  .smartinput-dialog,
  .smartinput-notification {
    display: none !important;
  }
} 

/* SmartInput 插件激活提示样式 - 右上角固定位置 */
.smartinput-activation-tip {
  position: fixed !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: white !important;
  padding: 10px 16px !important;
  border-radius: 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3) !important;
  z-index: 2147483647 !important;
  opacity: 0;
  transform: translateX(100%) scale(0.9);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  pointer-events: none !important;
  white-space: nowrap !important;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  min-width: 180px !important;
  max-width: 240px !important;
  text-align: center !important;
  backdrop-filter: blur(10px) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-sizing: border-box !important;
  top: 20px !important;
  right: 20px !important;
}

.smartinput-activation-tip .tip-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 8px !important;
}

.smartinput-activation-tip .tip-header {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.smartinput-activation-tip .tip-body {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 4px !important;
}

.smartinput-activation-tip .tip-icon {
  font-size: 18px !important;
}

.smartinput-activation-tip .tip-text {
  font-weight: 600 !important;
  font-size: 14px !important;
}

.smartinput-activation-tip .tip-subtitle {
  font-size: 12px !important;
  opacity: 0.95 !important;
  font-weight: 500 !important;
}

.smartinput-activation-tip .tip-desc {
  font-size: 11px !important;
  opacity: 0.8 !important;
  font-weight: 400 !important;
}

/* 提示显示状态 - 从右侧滑入 */
.smartinput-activation-tip.show {
  opacity: 1 !important;
  transform: translateX(0) scale(1) !important;
}

/* 提示隐藏状态 - 向右侧滑出 */
.smartinput-activation-tip.hide {
  opacity: 0 !important;
  transform: translateX(100%) scale(0.9) !important;
}

/* 响应式调整 */
@media (max-width: 768px) {
  .smartinput-activation-tip {
    font-size: 12px !important;
    padding: 10px 16px !important;
    min-width: 200px !important;
    max-width: 260px !important;
  }
  
  .smartinput-activation-tip .tip-text {
    font-size: 13px !important;
  }
  
  .smartinput-activation-tip .tip-subtitle {
    font-size: 11px !important;
  }
  
  .smartinput-activation-tip .tip-desc {
    font-size: 10px !important;
  }
} 